home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_55.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  113KB  |  816x1056  |  8-bit (256 colors)
Labels: book | crt screen | monitor | poster | reckoner | sky | windowpane
OCR: Lesson 11 I-51 see from the stack display that false is the same as zero, and true is -1 Since these words or rather the numbers they represent -are actually symbolic of a condition that has just been tested, they are sometimes referred to aflags Flags in programs are some thing like marl kers planted in key places that symbol lize certain condition. "true" flag signi fies that non- -zero number on the stack; "false" flag signifies that a zero is on the stack Another term that is paen boolean -this really means the same as "flag" To help ingrain this true/ e/false difference in your mind redefine "test" so that it reinforces the way the IF... THEN ELSE construction responds to TRUE and FALSE flags existing in the stack True ELSE False THEN Now place the numbers zero and four the stack (and ...